﻿<!DOCTYPE HTML>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>下单成功</title>
    
    <script src="cordova.js" type="text/javascript"></script>   
    <script type="text/javascript" charset="utf-8" src="baidushare.js"></script>
    
 <script type="text/javascript" charset="utf-8">    
 
  function shareClick(){
		var title= "深圳市贸促委";
		var content = "深圳市贸促委品牌加盟展APP下载！";
		var url = "http://pic1.win4000.com/pic/6/3c/9b5f279921.jpg";
		var imageurl = "http://pic1.win4000.com/pic/6/3c/9b5f279921.jpg";
		window.plugins.Baidushare.bdshare(
		   title,content,url,imageurl,function(success) {	 
          if(success == 1){
             alert("分享成功！"); //做业务处理
          }else if(success == 2){
             alert("未分享成功！");//做业务处理
          }else{
				    alert("encode success: " + success);
          }

				}, function(fail) {
			     alert("encoding failed: " + fail);
		   }
		   );
	}
	 
	    </script>
</head>
<body>
    <p><a href="#" onclick="shareClick(); return false;">百度分享</a></p> 
            
</body>
</html>
